<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="site" value="feedback" scope="application"/>

<html>
	<script>
		if(${insert} === 1){
			alert("反馈成功");
		}else if(${insert} === 2) {
			alert("反馈失败，请重试");
		}else if(${insert} === 3){
			alert("验证码错误");
		}
	</script>
	<c:import url="module/jsp/head.jsp"/>
	<body>
		<c:import url="module/jsp/header.jsp"/>
		<c:import url="module/jsp/aside.jsp"/>
		<main>
			<div class="main-content">
				<div class="welcome">您现在的位置是：首页>提出建议</div>
				<div class="newsbox">
					<form method="post" action="${pageContext.request.contextPath}/feedback">
					<section class="q-width-full">
						<div class="news">
							<h2 class="newstitle"><b>提出建议</b></h2>
								<div class="contentbox q-border-none q-input-full">
									<p>主题：</p>
									<input maxlength="20" name="title" style="height: 32px;" />
									<br><br>
									<p>详细内容：</p>
									<textarea name="content" style="height: 400px;padding-top: 10px;font-size: 16px;"></textarea>
									<br><br>
									<p>联系方式(博主会联系你表示感谢)：</p>
									<input maxlength="25" name="sender" style="height: 32px;width:30%;" placeholder="邮箱" />
									<br><br>
									<input name="code" style="float: left;width:15%;height: 32px;" placeholder="请输入验证码" maxlength="4" />
									<img src="${pageContext.request.contextPath}/util/verifyCodeImg.do" style="height: 40px;float: left;margin:0.3125rem 0 0 0.9375rem"  onclick="this.src=this.src+'?'+Math.random()"/>
									<br><br>
									<div class="q-pull-both-clean" style="margin-top: 30px;"></div>
									<div>
										<div class="q-width-half q-pull-center ">
											<button class="q-btn" type="submit" style="height: 40px;width: 100px;cursor:pointer;">提交</button>
										</div>
									</div>
									<br>
									<div class="q-pull-both-clean"></div>
								</div>
						</div>
					</section>
					</form>
				</div>
				<div class="blank"></div>
				<c:import url="module/jsp/footer.jsp"/>
			</div>
		</main>
		<a href="#" class="cd-top cd-is-visible">Top</a>
	</body>
	<c:import url="module/jsp/js.jsp"/>
</html>
